package top.zhangjianyong.test.entity;


import top.zhangjianyong.test.rule.GameRule;
import top.zhangjianyong.test.rule.GameRule1;

public class Game    {

    private GameRule gameRule ;

    private People people1;
    private People people2;

    public Game() {
        gameRule=new GameRule1();
    }

    public Game(People people1, People people2) {
        gameRule=new GameRule1();
        this.people1 = people1;
        this.people2 = people2;
    }

    public void start() throws Exception {
        gameRule.start(this);
    }

    public GameRule getGameRule() {
        return gameRule;
    }

    public void setGameRule(GameRule gameRule) {
        this.gameRule = gameRule;
    }

    public People getPeople1() {
        return people1;
    }

    public void setPeople1(People people1) {
        this.people1 = people1;
    }

    public People getPeople2() {
        return people2;
    }

    public void setPeople2(People people2) {
        this.people2 = people2;
    }


}
